From a693a4931cda8787a185941ee74f0e8c1f977945 Mon Sep 17 00:00:00 2001 From: justbur Date: Wed, 22 Jul 2015 12:30:48 -0400 Subject: [PATCH] Fix for #49 Need to check if the prefix has changed when possibly restarting the timer after paging. --- which-key.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index f58a88abf94..897eacb2096 100644 --- a/which-key.el +++ b/which-key.el @@ -995,7 +995,10 @@ enough space based on your settings and frame size." prefix-keys) (setq timer (run-with-idle-timer 0.1 t (lambda () - (unless (eq real-last-command 'which-key-show-next-page) + (when (or (not (eq real-last-command 'which-key-show-next-page)) + (and (< 0 (length (this-single-command-keys))) + (not (equal which-key--current-prefix + (this-single-command-keys))))) (cancel-timer timer) (which-key--start-timer)))))))) -- 2.30.2